package cn.chencq.redis.demo;

import cn.chencq.redis.cluster.RedisClusterFactory;

public class RedisDemo {

	private static String clusterName = "demoCluster";

	public static void main(String[] args) {
		// 加载Redis集群配置
		RedisClusterFactory.init("redis-conf.xml");
		RedisClusterFactory.set(clusterName, "test", "hello");
		
		String getStr= RedisClusterFactory.get(clusterName, "test");
		System.out.println(getStr);
		 
	}
	
	
	
	
	
}
